// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App.vue'
import VueRouter from 'vue-router'
import routeConfig from './router-config'
import axios from 'axios';
import Mock from './mock/mock'
import 'vue-awesome/icons'
import Icon from 'vue-awesome/components/Icon'


Vue.config.productionTip = false
Vue.prototype.$http = axios;

Mock.mockData();

Vue.use(VueRouter)
const router = new VueRouter({
  routes: routeConfig
})
Vue.component('icon', Icon);

const  app = new Vue({
  router,
  el: '#app',
  components: { App },
  template: '<App/>'
});

